<%@page import="java.util.Calendar"%>
<%@page import="java.util.regex.Pattern"%>
<%@page import="java.net.URL"%>
<%@page import="java.util.Date"%>
<%
String pr = (String)request.getAttribute("pr");
String domain = (String)request.getAttribute("name");
if(pr!=null)
{
pr = pr.replaceAll("[^0-9]","");
if(pr.equals(""))
	pr="0";
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>
			<%
			if(domain != null)
			{
			%>
			<%=domain%> has pagerank is <%=pr %>
			<%
			} else {
			%>
			Check pagerank google api
			<%
			}
			%>
		</title>
		<link rel='stylesheet' type='text/css' href='css/pr.css' />
		<meta name="description" content="<%if(domain != null){%><%=domain%> has pagerank is <%=pr %><%}%>. Free google pagerank api that can use in php,java,c,c++,python,ruby even javascript or html"/>
		<meta name="Keywords" content="google pagerank api,xml pagerank api, json pagerank api , image pagerank api , php pagerank api , java pagerank api , python pagerank api , c pagerank api,prapi.net"/>
		
	</head>
	<body>
		<div class="header">
			<a href="/"><img src="./images/logo.png" alt="" /></a>
		</div>
		<div class="line">
			<!-- AddThis Button BEGIN -->
			<div class="addthis_toolbox addthis_default_style ">
			<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
			<a class="addthis_button_tweet"></a>
			<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
			<a class="addthis_counter addthis_pill_style"></a>
			</div>
			<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d6f3cdb1d190d60"></script>
			<!-- AddThis Button END -->
			<form action="">
				<input type="text" name="url" value="http://example.com" onclick="javascript:this.value=''"/>
				<button>Check PR</button>
			</form>
			<br/>
			<script type="text/javascript"><!--
google_ad_client = "ca-pub-5761106139279792";
/* gpagerank */
google_ad_slot = "2381157007";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
			<%
			if(domain != null)
			{
			%>
			<div class="show">
				<img src="/images/<%=pr%>.gif"></img><br/>
				<span><%=domain%> has pagerank is : <font><%=pr %></font></span><br/>
				<p>Check pagerank of <a href="http://www.prapi.net/?url=<%=domain %>" target="_blank"><%=domain%></a> on prapi</p>
				<b>Link image api :</b> <a href="/pr.jsp?url=<%=domain %>" target="_blank"> http://www.gpagerank.net/pr.jsp?url=<%=domain %></a><br/>
				<b>Link xml api :</b> <a href="/pr.jsp?url=<%=domain %>&f=xml" target="_blank"> http://www.gpagerank.net/pr.jsp?url=<%=domain %>&f=xml</a><br/>
				<b>Link json api :</b> <a href="/pr.jsp?url=<%=domain %>&f=json" target="_blank"> http://www.gpagerank.net/pr.jsp?url=<%=domain %>&f=json</a><br/>
				<b>Link text api :</b> <a href="/pr.jsp?url=<%=domain %>&f=text" target="_blank"> http://www.gpagerank.net/pr.jsp?url=<%=domain %>&f=text</a>
				<br/>
				<strong>Widget</strong><br/>
				<textarea style="width: 400px;height: 100px;" onclick="javascript:this.select()" title="check pagerank api"><a href="http://www.gpagerank.net/pr.jsp?url=<%=domain %>" target="_blank"><img src="http://www.gpagerank.net/pr.jsp?url=<%=domain %>" alt='check pagerank api'/></a></textarea>
			</div>
			<div class="adv">
			<script type="text/javascript"><!--
google_ad_client = "ca-pub-5761106139279792";
/* gpagerank 250 */
google_ad_slot = "4029727732";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="clear"></div>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5761106139279792";
/* gpagerank */
google_ad_slot = "2381157007";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
			<%
			}
			%>
			
		</div>
		<div class="footer">
			Copyright @ 2011.The name "PageRank" is a trademark of Google<br/><br/>
			<a target="_blank" href="http://www.showsiteinfo.net/">View infomation site in showsiteinfo.net</a> | 
			<a target="_blank" href="http://www.web20vn.com/">View infomation site in web20vn</a> | 
			<a target="_blank" href="http://www.yooarticles.net/">Submit your Articles in YooArticles</a> <br>
			<a target="_blank" href="http://www.5ty.org/">Website infomation with 5ty.org</a>
		</div>
	</body>
</html>	